package com.itboye.sunsun.person.fragments;

import java.util.ArrayList;
import java.util.List;

import com.itboye.sunsun.R;
import com.itboye.sunsun.Application.App;
import com.itboye.sunsun.adapter.PayListViewAdapter;
import com.itboye.sunsun.adapter.ReceiveListViewAdapter;
import com.itboye.sunsun.custome.XListView;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@SuppressLint("ValidFragment")
public class ReceiveFragment extends Fragment {
	private Context context;
	
	private XListView xListView;
	private View receiveView;
	private ReceiveListViewAdapter receiveAdapter;

    public ReceiveFragment() {
		// TODO Auto-generated constructor stub
	}

	public ReceiveFragment(Context context) {
		this.context = context;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub

		receiveView = inflater.inflate(R.layout.fragment_allfragment, container,false);

		initView();
		return receiveView;
	}

	public void initView() {
		xListView = (XListView) receiveView.findViewById(R.id.xlistview);

		List list = new ArrayList();
		list.add("hha");
		list.add("11");

		receiveAdapter = new ReceiveListViewAdapter(App.ctx, list);

		xListView.setAdapter(receiveAdapter);

	}
}
